#coding=utf-8
import re

'''
' [多行]2.7.9-1 dealloc, init, load方法要放在类实现的最前面
'''
def mzcc_udrule_mul2_7_9__1(bufferItem, lineContext):

    results = re.findall(r"^@end", lineContext.curNspLine);
    if 0 != len(results):
        bufferItem.userDefineInfo = None;
        return 0;

    results = re.findall(r"^\+\(|^-\(", lineContext.curNspLine);
    if 0 != len(results):
        subResults = re.findall(r"\)init{|\)initWithCoder:\(|\)initWithNibName:\(|\)dealloc{|\)load {", lineContext.curNspLine);
        if 0 != len(subResults):
            if None != bufferItem.userDefineInfo:
                bufferItem.lineNum = lineContext.curLineNum;
                bufferItem.userDefineInfo = None;
                return 1;
        else:
            bufferItem.userDefineInfo = 1;

    return 2;
